﻿namespace Mp3Observer.Common.IoC
{
    using System.Configuration;

    /// <summary>
    /// ConfigurationElement for ctors
    /// </summary>
    /// <example>
    ///  <add name="IFileRepository" contract="Mp3Observer.Interfaces.IFileRepository,  Mp3Observer.Interfaces" implementation="Mp3Observer.Services.FileRepository,  Mp3Observer.Services">
    ///   <constructor>
    ///      <add dependency="Mp3Observer.Interfaces.IDataAccess,  Mp3Observer.Interfaces" />
    ///      <add dependency="Mp3Observer.Interfaces.ITagging,  Mp3Observer.Interfaces" />
    ///    </constructor>
    ///  </add>
    /// </example>
    public class ConstructorElement : ConfigurationElement
    {
        /// <summary>
        /// Gets or sets the dependency.
        /// </summary>
        /// <value>The dependency.</value>
        [ConfigurationProperty("dependency", DefaultValue = "", IsKey = true, IsRequired = true)]
        public string Dependency
        {
            get { return (string)base["dependency"]; }
            set { base["dependency"] = value; }
        }
    }
}
